#! /bin/bash
export LANG=en_US.UTF-8

STRNUM=$*

isEmpty_1=$(ps aux | grep $2 | grep TaskDataProcessor)
if [[ "$isEmpty_1" != "" ]]; then
	echo "TaskDataProcessor,TaskDataProcessor"
	exit 1
fi

isEmpty_2=$(ps aux | grep $2 | grep MsgSupportServer)
if [[ "$isEmpty_2" != "" ]]; then
	echo "MsgSupportServer,MsgSupportServer"
	exit 1
fi

isEmpty_3=$(ps aux | grep $2 | grep bizserveract)
if [[ "$isEmpty_3" != "" ]]; then
	echo "bizserveract,bizserveract"
	exit 1
fi

isEmpty_4=$(ps aux | grep $2 | grep bizservernotice)
if [[ "$isEmpty_4" != "" ]]; then
	echo "bizservernotice,bizservernotice"
	exit 1
fi

isEmpty_5=$(ps aux | grep $2 | grep apnsime)
if [[ "$isEmpty_5" != "" ]]; then
	echo "apnsime,apnsime"
	exit 1
fi

isEmpty_6=$(ps aux | grep $2 | grep apnsviafly)
if [[ "$isEmpty_6" != "" ]]; then
	echo "apnsviafly,apnsviafly"
	exit 1
fi
